
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.BufferedWriter;
import java.io.IOException;
 
public class AppendToFileExample 
{
    public static void main( String[] args )
    {	
    
        	try{
        		//String data = " This content will append to the end of the file";
     
        		File file =new File("javaio-appendfile.txt");
     
        		 
        		//true = append file
        		FileReader fileReader = new FileReader(file);
        	        BufferedReader bufferReader = new BufferedReader(fileReader);
        	        System.out.println(bufferReader.readLine());
        	        bufferReader.close();
     
    	        System.out.println("Doneeror : "+ fileReader.toString());
     
        	}catch(IOException e){
        		e.printStackTrace();
        	}
        }
    }
    